package factory.pizzaResource;


import factory.PizzaIngredientFactory;

/**
 * Created by lenovo on 2017/12/31.
 */
public class ClamPizza extends Pizza {

    PizzaIngredientFactory pizzaIngredientFactory;
    public ClamPizza(PizzaIngredientFactory pizzaIngredientFactory){
        this.pizzaIngredientFactory=pizzaIngredientFactory;
    }
    @Override
    void prepare() {

        System.out.println("preparing "+name);
        dough=pizzaIngredientFactory.createDoutgh();
        sauce=pizzaIngredientFactory.createSauch();
        cheese=pizzaIngredientFactory.createCheese();
    }
}
